﻿<div class="two columns">
    @if (Request.IsAuthenticated)
    {
        <text>
        Hello, @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })!
        @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
        {
            @Html.AntiForgeryToken()
            <a class="button small radius" href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
        }
        </text>
    }
    else
    {
        <p style="margin: 6px 0">
            @Html.ActionLink("Sign up!", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink", @class = "button radius" })
            @Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink", @class = "button secondary radius" })
        </p>
    }
</div>